package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * IoT数据_六面控温功率记录对象 iot_cube_power_history
 *
 * @author ruoyi
 * @date 2025-04-02
 */
@TableName(value = "iot_cube_power_history")
@Data
@ApiModel("IoT数据_六面控温功率记录")
public class IotCubePowerHistory {
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    @ApiModelProperty("自增ID")
    private Long id;

    /** 仓房ID */
    @Excel(name = "仓房ID")
    @ApiModelProperty("仓房ID")
    private Long warehouseId;

    /** 总功率 */
    @Excel(name = "总功率")
    @ApiModelProperty("总功率")
    private BigDecimal powerTotal;

    /** 粮面空调1功率 */
    @Excel(name = "粮面空调1功率")
    @ApiModelProperty("粮面空调1功率")
    private BigDecimal powerAc1;

    /** 粮面空调2功率 */
    @Excel(name = "粮面空调2功率")
    @ApiModelProperty("粮面空调2功率")
    private BigDecimal powerAc2;

    /**
     * 水冷机组1功率
     */
    @Excel(name = "水冷机组1功率")
    @ApiModelProperty("水冷机组1功率")
    private BigDecimal powerLc1;

    /**
     * 水冷机组2功率
     */
    @Excel(name = "水冷机组2功率")
    @ApiModelProperty("水冷机组2功率")
    private BigDecimal powerLc2;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    LocalDate date;

    @ApiModelProperty("1总功率 2粮面1 3粮面2 4水冷1 5水冷2")
    Integer type;
}
